import Vuex from 'vuex';
import Vue from 'vue';
import search from './modules/search';
import worthBuy from './modules/worthBuy';
import category from './modules/category';
import cart from './modules/cart';
import detail from './modules/detail';
import home from './modules/home';
import user from './modules/user';
import shopList from './modules/shopList';
Vue.use(Vuex);

const state = {};
const mutations = {};
const actions = {};
const getters = {};

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
    worthBuy,
    search,
    category,
    cart,
    detail,
    home,
    user,
    shopList,
  },
});
